package com.xy.gateway.request.pay.handle;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.xy.gateway.model.EpayGateSetting;
import com.xy.gateway.model.Respara;

public class RequestParaHandlerBCOM extends RequestParaHandlerStandart {
	public RequestParaHandlerBCOM(javax.servlet.http.HttpServletRequest req,
			String sid,String reqtype, String paytype) {
		super(req, sid,reqtype, paytype);
	}

	@Override
	protected Map<String, String> getResValuesMap(List<Respara> list) {
		String notifyMsg=request.getParameter("notifyMsg");
		
		Map<String, String> requestvalues = new LinkedHashMap<String, String>();
		String vs[]=notifyMsg.split("\\"+EpayGateSetting.getCertBySidByPK(sid, paytype, "1").getEnclinks());
		for (int i = 0; i < list.size(); i++) {
			String s = vs[i];
			requestvalues.put(list.get(i).getResparaname(), s);
		}
		return requestvalues;
	}
}
